<input type="button" value="Continue checkout >>" class="checkout-button <?php echo (App::Component('appStore')->Helper('Data')->isToCheckout()) ? "show" : "hide";?>" />
<?php if(!empty($products['data'])):?>
	<ul class="grid-list glitter">
	<?php foreach($products['data'] as $key => $product):?>
		<?php echo ($key%3 == 0)? App::Helper('Html')->getTag('li',Array('class'=>'pborderb')) : App::Helper('Html')->getTag('li',Array('class'=>'pborderlb'));?>
			<?php echo App::Helper('Html')->imgTag($product['imagethumb'],array('mode'=>'imagemanager'),array('class'=>'box'));?><br />
			<strong>Price : <?php echo( App::Helper('Config')->siteInfo('currency') . $product['price']);?></strong>
			<h3><?php echo($product['title']);?></h3>
			<div class="add2cartwrapper">
				<input type="hidden" size="2" value="<?php echo $product['id']; ?>|<?php echo $catid; ?>" class="productid" />
				<?php App::Hook('UI')->Render('appstore_checkout_button_left',$product); ?>
				<input type="hidden" size="2" value="<?php echo App::Component('appStore')->Helper('Data')->getCartInfoByProductId($product['id'])?>" class="add2cart-input" />
				<input type="submit" value="Buy Now" class="add2cart-button" />
				<?php App::Hook('UI')->Render('appstore_checkout_button_right',$product); ?>
			</div>
			<?php echo($product['shortdesc']);?>
		</li>
	<?php endforeach;?>
	</ul>
	<br class="clearboth" />
	<?php if($products['paging']!=''):?>
		<p><?php echo $products['link']; ?></p>
	<?php endif;?>
<?php else:?>
	<h2><?php echo $this->__("Sorry, these items are sold out at the moment"); ?></h2>
<?php endif;?>
<div class="clearboth"></div>